Plant Controller Model: REPCGFM_C1

Model was added in Version 24, build on May 1, 2025

 

Model Equations and/or Block Diagrams   

Parameters:

OtherObject:0 Measurement Bus
OtherObject:1 Measurement Branch
OtherObject:2 Measurement Freq Bus
MeasFlag 0 indicates that positive flow for MeasBranch is leaving MeasBus going out to the line. 1 indicate that positive flow for MeasBranch is arriving at MeasBus coming in from the line.
VFlag A flag to determine if the voltage control for the GFL branch is enabled (<>0) or disabled (0)
VrefFlag A flag to select whether the plant voltage measurement (<>0) or the inverter voltage measurement (0) is used to generate the voltage reference of the GFM branch
FFRFlag A flag to select whether the FFR function is enabled (<>0) or disabled (0)
FRmax Upper rate limiter for the plant frequency measurement [pu/s]
FRmin Lower rate limiter for the plant frequency measurement [pu/s]
Tfrq Time constant of the low-pass filter for site frequency measurement [s]
Vfth Voltage threshold for the plant frequency measurement [pu]
Frefmax Upper limit of the frequency reference generator of the GFM branch [pu]
Frefmin Lower limit of the frequency reference generator of the GFM branch [pu]
Tfref Time constant of the low-pass filter for frequency reference output [s]
TVmeas Time constant of the low-pass filter for voltage measurement [s]
TVlag Emulate the time delay of sending the inverter terminal voltage to the plant controller [s]
Rloss Resistance used to estimate the active power loss of the plant ( If Rloss=0, it will be auto-calculated at initialization so that integrator state for Kip is zero) [pu]
Xloss Reactance used to estimate the reactive power loss of the plant (If Xloss=0, it will be auto-calculated at initialization so that integrator state for Kiq is zero) [pu]
Vrefmax Upper limit of the voltage reference generator of the GFM branch [pu]
Vrefmin Lower limit of the voltage reference generator of the GFM branch [pu]
TVref Time constant of the low-pass filter for voltage reference output [s]
dbfL1 Lower threshold of the frequency deadband [pu]
dbfH1 Upper threshold of the frequency deadband [pu]
Ddn Downside of frequency versus power droop gain [pu]
Dup Upside of frequency versus power droop gain [pu]
Pfreqmax Upper limit of the frequency versus active power droop reference [pu]
Pfreqmin Lower limit of the frequency versus active power droop reference [pu]
Prefmax Upper limit of the active power reference [pu]
Prefmin Lower limit of the active power reference [pu]
FFFRhigh Upper threshold of the Fast Frequency Response function [pu]
FFFRlow Lower threshold of the Fast Frequency Response function [pu]
PFFRhigh Power command of Fast Frequency Response when frequency is higher than fFFR_high [pu]
PFFRlow Power command of Fast Frequency Response when frequency is lower than fFFR_low [pu]
TFFR Time duration of the Fast Frequency Response [s]
DFFR Ramp rate for the Fast Frequency Response to quit operation [pu/s]
TPmeas Time constant of the low-pass filter for P measurement. [s]
Kip Controller gain for the active power path [pu]
PerrRmax Upper limit of the input for the active power path [pu]
PerrRmin Lower limit of the input for the active power path [pu]
Perrmax Upper limit of the integrator for the active power path [pu]
Perrmin Lower limit of the integrator for the active power path [pu]
TPlag Emulate the time delay of sending the P command from the plant controller to the inverter controller [s]
Qrefmax Upper limit of the reactive power reference [pu]
Qrefmin Lower limit of the reactive power reference [pu]
TQmeas Time constant of the low-pass filter for Q measurement [s]
Kiq Controller gain for the reactive power path [pu]
QerrRmax Upper limit of the input for the reactive power path [pu]
QerrRmin Lower limit of the input for the reactive power path [pu]
Qerrmax Upper limit of the integrator for the reactive power path [pu]
Qerrmin Lower limit of the integrator for the reactive power path [pu]
TQlag Emulate the time delay of sending the Q command from the plant controller to the inverter controller [s]
Verrmax Upper limit of the voltage reference [pu]
Verrmin Lower limit of the voltage reference [pu]
dbVSL1 Lower threshold of the plant voltage controller deadband [pu]
dbVSH1 Upper threshold of the plant voltage controller deadband [pu]
Kpvc Controller gain of the plant voltage controller [pu]
Kivc Controller gain of the plant voltage control [pu]
Qvcmax Upper limit of the reactive power of the plant controller [pu]
Qvcmin Lower limit of the reactive power of the plant controller [pu]
Tvc Time constant of the low-pass filter [s]
MVABase Model MVA base (enter 0 to use the machine MVABase) [MVA]